<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:forgeview="http://jboss.org/forge/view"	
	template="/resources/templates/pageTemplate.xhtml">

	<f:metadata>
		<f:viewParam name="id" value="#{sysCustBlacklistBean.id}"/>
		<f:event type="preRenderView" listener="#{sysCustBlacklistBean.retrieve}"/>
	</f:metadata>

	<ui:param name="pageTitle" value="Create Sys Cust Blacklist"/>

	<ui:define name="header">
		Sys Cust Blacklist
	</ui:define>

	<ui:define name="subheader">
		<c:choose>
			<c:when test="#{!empty sysCustBlacklistBean.id}">
				Edit existing Sys Cust Blacklist
			</c:when>
			<c:otherwise>
				Create a new Sys Cust Blacklist
			</c:otherwise>
		</c:choose>
	</ui:define>

	<ui:define name="footer"/>

	<ui:define name="main">
		<h:form id="create">
			<h:messages globalOnly="true" styleClass="error"/>

			<h:panelGrid columnClasses="label,component,required" columns="3">
				<h:outputLabel for="sysCustBlacklistBeanSysCustBlacklistSysCust" value="Sys Cust:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysCustBean.converter}" id="sysCustBlacklistBeanSysCustBlacklistSysCust" value="#{sysCustBlacklistBean.sysCustBlacklist.sysCust}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysCustBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysCustBlacklistBeanSysCustBlacklistSysCust" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBlacklistBeanSysCustBlacklistSysCustBlacklistType" value="Sys Cust Blacklist Type:"/>
				<h:panelGroup>
					<h:selectOneMenu converter="#{sysCustBlacklistTypeBean.converter}" id="sysCustBlacklistBeanSysCustBlacklistSysCustBlacklistType" value="#{sysCustBlacklistBean.sysCustBlacklist.sysCustBlacklistType}">
						<f:selectItem/>
						<f:selectItems itemLabel="#{forgeview:display(_item)}" itemValue="#{_item}" value="#{sysCustBlacklistTypeBean.all}" var="_item"/>
					</h:selectOneMenu>
					<h:message for="sysCustBlacklistBeanSysCustBlacklistSysCustBlacklistType" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBlacklistBeanSysCustBlacklistBlOrgNo" value="Bl Org No:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBlacklistBeanSysCustBlacklistBlOrgNo" value="#{sysCustBlacklistBean.sysCustBlacklist.blOrgNo}"/>
					<h:message for="sysCustBlacklistBeanSysCustBlacklistBlOrgNo" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBlacklistBeanSysCustBlacklistBlDate" value="Bl Date:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBlacklistBeanSysCustBlacklistBlDate" maxLength="10" value="#{sysCustBlacklistBean.sysCustBlacklist.blDate}">
						<f:convertDateTime type="date"/>
					</h:inputText>
					<h:message for="sysCustBlacklistBeanSysCustBlacklistBlDate" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBlacklistBeanSysCustBlacklistBlComment" value="Bl Comment:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBlacklistBeanSysCustBlacklistBlComment" maxLength="500" value="#{sysCustBlacklistBean.sysCustBlacklist.blComment}"/>
					<h:message for="sysCustBlacklistBeanSysCustBlacklistBlComment" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBlacklistBeanSysCustBlacklistBlIsCancelStatus" value="Bl Is Cancel Status:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBlacklistBeanSysCustBlacklistBlIsCancelStatus" value="#{sysCustBlacklistBean.sysCustBlacklist.blIsCancelStatus}"/>
					<h:message for="sysCustBlacklistBeanSysCustBlacklistBlIsCancelStatus" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBlacklistBeanSysCustBlacklistBlCancelComment" value="Bl Cancel Comment:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBlacklistBeanSysCustBlacklistBlCancelComment" maxLength="500" value="#{sysCustBlacklistBean.sysCustBlacklist.blCancelComment}"/>
					<h:message for="sysCustBlacklistBeanSysCustBlacklistBlCancelComment" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
				<h:outputLabel for="sysCustBlacklistBeanSysCustBlacklistBlInfoSource" value="Bl Info Source:"/>
				<h:panelGroup>
					<h:inputText id="sysCustBlacklistBeanSysCustBlacklistBlInfoSource" maxLength="100" value="#{sysCustBlacklistBean.sysCustBlacklist.blInfoSource}"/>
					<h:message for="sysCustBlacklistBeanSysCustBlacklistBlInfoSource" styleClass="error"/>
				</h:panelGroup>
				<h:outputText/>
			</h:panelGrid>

			<div class="buttons">
				<h:commandLink value="Save" action="#{sysCustBlacklistBean.update}" styleClass="btn btn-primary"/>
				<c:choose>
					<c:when test="#{!empty sysCustBlacklistBean.id}">
						<h:link value="Cancel" outcome="view" styleClass="btn btn-primary">
							<f:param name="id" value="#{sysCustBlacklistBean.id}"/>
						</h:link>
						<h:commandLink value="Delete" action="#{sysCustBlacklistBean.delete}" styleClass="btn btn-primary"/>
					</c:when>
					<c:otherwise>
						<h:link value="Cancel" outcome="search" styleClass="btn btn-primary"/>
					</c:otherwise>
				</c:choose>
			</div>
		</h:form>
	</ui:define>

</ui:composition>